package com.example.danci.model.vo;
public class Result<T> {
    public int status;
    public String message;
    public T data;

    public Result() {}

    public Result(String message, int status, T data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }

    public static <T> Result success() {
        Result<T> r = new Result<>("suc", 0, null);
        return r;
    }

    public static <T> Result success(T data) {
        Result<T> r = new Result<>("suc", 0, data);
        return r;
    }
    public static <T> Result success(T data,int status, String message) {
        Result<T> r = new Result<>( message,status,data);
        return r;
    }

}